<%@ page import="com.genghis.ptas.classroom.entity.ClassroomInfo" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8"/>
    <title>试卷</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>

    <%@include file="../../common.jsp" %>

    <link href="assets/css/style.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/common/global.css"/>"/>
    <!--文本编辑-->
    <link rel="stylesheet" type="text/css" href="assets/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css"/>
    <link rel="stylesheet" type="text/css" href="assets/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
    <link href="assets/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="assets/css/plugins.css" rel="stylesheet" type="text/css"/>
    <link href="assets/css/pages/profile.css" rel="stylesheet" type="text/css"/>
    <!--文本编辑-->

    <!-- BEGIN GLOBAL MANDATORY STYLES -->
    <link href="corporate/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <!-- END GLOBAL MANDATORY STYLES -->

    <!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
    <link href="corporate/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet"/>
    <!-- END PAGE LEVEL PLUGIN STYLES -->

    <!-- BEGIN THEME STYLES -->
    <link href="corporate/css/style-metronic.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/themes/blue.css" rel="stylesheet" type="text/css" id="style_color"/>
    <link href="corporate/css/style-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/pages/prices.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/custom.css" rel="stylesheet" type="text/css"/>
    <!-- END THEME STYLES -->
    <link rel="shortcut icon" href="favicon.ico"/>
    <%List<ClassroomInfo> classroomInfoList = (List<ClassroomInfo>) request.getAttribute("classroomInfoList");%>
</head>
<!-- END HEAD -->

<!-- BEGIN BODY -->
<body>
<!-- BEGIN PAGE CONTAINER -->
<div class="page-container">

    <!-- BEGIN BREADCRUMBS -->
    <div class="row breadcrumbs margin-bottom-40">
        <div class="container">
            <div class="col-md-4 col-sm-4">
                <h1>试卷</h1>
            </div>
            <div class="col-md-8 col-sm-8">
                <ul class="pull-right breadcrumb">
                </ul>
            </div>
        </div>
    </div>
    <!-- END BREADCRUMBS -->

    <!-- BEGIN CONTAINER -->
    <div class="container min-hight">
        <!-- BEGIN PRICING OPTION1 -->
        <div class="row margin-bottom-40">
            <c:forEach begin="0" end="${fn:length(typeValuesList)}" step="3" var="typeValue">
                <div class="col-md-12" style="width: 33%;height: 260px;">
                    <!-- BEGIN EXTRAS PORTLET-->
                    <!-- END EXTRAS PORTLET-->
                    <div class="portlet box grey ">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="fa fa-cogs"></i>
                                    ${typeValuesList[typeValue].typeValue}
                            </div>
                            <div class="actions">
                                <a class="btn default btn-sm" href="#">
                                    <i class="fa fa-pencil"></i>
                                    更多
                                </a>
                            </div>
                        </div>
                        <div class="portlet-body" style="height: 180px">
                            <p>
                                <c:forEach items="${examinationInfoList}" var="examinationInfo">
                                    <c:if test="${examinationInfo.examinationType==typeValuesList[typeValue].id}">
                                        <a onclick="doExamination(${examinationInfo.id})">
                                            [${typeValuesList[typeValue].typeValue}]&nbsp;&nbsp;&nbsp;${examinationInfo.examinationName}&nbsp;&nbsp;&nbsp;${examinationInfo.establishData}
                                        </a><br/>
                                    </c:if>
                                </c:forEach>
                            </p>

                            <div id="pie_chart_1" class="col-md-10">
                            </div>
                        </div>
                    </div>
                </div>
                <c:if test="${!empty typeValuesList[typeValue+1].typeValue}">
                    <div class="col-md-12" style="width: 33%;height: 260px;">
                    <!-- BEGIN EXTRAS PORTLET-->
                    <!-- END EXTRAS PORTLET-->
                    <div class="portlet box purple">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="fa fa-cogs"></i>
                                    ${typeValuesList[typeValue+1].typeValue}
                            </div>
                            <div class="actions">
                                <a class="btn default btn-sm" href="#">
                                    <i class="fa fa-pencil"></i>
                                    更多
                                </a>
                            </div>
                        </div>
                        <div class="portlet-body" style="height: 180px">
                            <p>
                                <c:forEach items="${examinationInfoList}" var="examinationInfo">
                                    <c:if test="${examinationInfo.examinationType==typeValuesList[typeValue+1].id}">
                                        <a onclick="doExamination(${examinationInfo.id})">
                                            [${typeValuesList[typeValue+1].typeValue}]&nbsp;&nbsp;&nbsp;${examinationInfo.examinationName}&nbsp;&nbsp;&nbsp;${examinationInfo.establishData}
                                        </a><br/>
                                    </c:if>
                                </c:forEach>
                            </p>
                        </div>
                    </div>
                </div>
                </c:if>
                <c:if test="${!empty typeValuesList[typeValue+1].typeValue}">
                    <div class="col-md-12" style="width: 33%;height: 260px;">
                    <!-- BEGIN EXTRAS PORTLET-->
                    <!-- END EXTRAS PORTLET-->
                    <div class="portlet box red ">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="fa fa-cogs"></i>
                                    ${typeValuesList[typeValue+2].typeValue}
                            </div>
                            <div class="actions">
                                <a class="btn default btn-sm" href="javascript:void(0);">
                                    <i class="fa fa-pencil"></i>
                                    更多
                                </a>
                            </div>
                        </div>
                        <div class="portlet-body" style="height: 180px">
                            <p>
                                <c:forEach items="${examinationInfoList}" var="examinationInfo">
                                    <c:if test="${examinationInfo.examinationType==typeValuesList[typeValue+2].id}">
                                        <a onclick="doExamination(${examinationInfo.id})">
                                            [${typeValuesList[typeValue+2].typeValue}]&nbsp;&nbsp;&nbsp;${examinationInfo.examinationName}&nbsp;&nbsp;&nbsp;${examinationInfo.establishData}
                                        </a><br/>
                                    </c:if>
                                </c:forEach>
                            </p>
                        </div>
                    </div>
                </div>
                </c:if>
            </c:forEach>
        </div>
        <!-- END PRICING OPTION1 -->
    </div>
    <!-- END CONTAINER -->

</div>
<!-- END PAGE CONTAINER -->

<!-- BEGIN COPYRIGHT -->
<div class="copyright">
    <div class="container">
        <div class="row">
            <div class="col-md-8">
                <p>
                    <span class="margin-right-10">2014 © 长春工业大学. 苏格拉没有底开发小队 版权所有 </span>
                </p>
            </div>
            <div class="col-md-4">
                <ul class="social-footer">
                    <li><img src="ecommerce/img/payments/western-union.jpg" alt="We accept Western Union"
                             title="We accept Western Union"></li>
                    <li><img src="ecommerce/img/payments/american-express.jpg" alt="We accept American Express"
                             title="We accept American Express"></li>
                    <li><img src="ecommerce/img/payments/MasterCard.jpg" alt="We accept MasterCard"
                             title="We accept MasterCard"></li>
                    <li><img src="ecommerce/img/payments/PayPal.jpg" alt="We accept PayPal" title="We accept PayPal">
                    </li>
                    <li><img src="ecommerce/img/payments/visa.jpg" alt="We accept Visa" title="We accept Visa"></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- END COPYRIGHT -->
<!-- Load javascripts at bottom, this will reduce page load time -->
<!-- BEGIN CORE PLUGINS(REQUIRED FOR ALL PAGES) -->
<!--[if lt IE 9]>
<script src="corporate/plugins/respond.min.js"></script>
<![endif]-->
<script src="corporate/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="corporate/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="corporate/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="corporate/plugins/hover-dropdown.js"></script>
<script type="text/javascript" src="corporate/plugins/back-to-top.js"></script>
<!-- END CORE PLUGINS -->
<script src="<c:url value="/js/common/common.js"/>" type="text/javascript"></script>
<base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()%><c:url value="/"/>"/>

<!-- BEGIN PAGE LEVEL JAVASCRIPTS(REQUIRED ONLY FOR CURRENT PAGE) -->
<script type="text/javascript" src="corporate/plugins/fancybox/source/jquery.fancybox.pack.js"></script>
<script src="corporate/scripts/app.js"></script>

<!-- END PAGE LEVEL JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>
<script type="text/javascript">
    jQuery(document).ready(function () {
        App.init();
    });

    function doExamination(id) {
        window.location.href = basePath + "task/examination/doExaminationDo?id=" + id;
    }
</script>